//
//  MVPViewController.m
//  架构
//
//  Created by 王玉东 on 2018/10/10.
//  Copyright © 2018 WYD. All rights reserved.
//

#import "MVPViewController.h"
#import "MVPManner.h"
@interface MVPViewController ()
@property(nonatomic,strong)MVPManner *Manner;
@property(nonatomic,strong)MVPView   *MvpView;
@property(nonatomic,strong)MVPModel  *model;
@end

@implementation MVPViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.Manner = [MVPManner new];
    self.MvpView = [MVPView new];
    self.MvpView.frame = self.view.bounds;
    [self.view addSubview:self.MvpView];
    
    self.model = [MVPModel new];
    self.model.content = @"line 0";
    _Manner.view = self.MvpView;
    _Manner.model = self.model;
    _MvpView.delegate = _Manner;
    [self.Manner printTask];
    // Do any additional setup after loading the view.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
